package com.imooc.springboot.dubbo.nilinili.entity.dto;

import lombok.*;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Validated
public class LoginUserDTO implements Serializable {
    @NotBlank(message = "登录账号不能为空")
    private String username;
    @NotBlank(message = "登录密码不能为空")
    private String password;
}
